using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using backend.Models.Dtos;

namespace backend.Models.Mappings
{
    public class MappingProfile : Profile
    {
         public MappingProfile()
        {
            // 配置映射规则
            CreateMap<MaintenanceMan, MaintenanceManUpdateDto>();
            CreateMap<MaintenanceManUpdateDto, MaintenanceMan>();
            CreateMap<UserRegisterDto, User>();
            CreateMap<UserUpdateDto, User>();
            CreateMap<User, UserRegisterDto>();
            CreateMap<User, UserReturnDto>();
            CreateMap<User, MaintenanceManReturnDto>();
            CreateMap<MaintenanceManCreateDto, MaintenanceMan>();
            // 更多映射规则...
        }
    }
}